package com.framewiki.example.web;

import com.cdkjframework.core.spring.CdkjApplication;
import com.framewiki.example.annotation.EnableAutoExample;
import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @ProjectName: framewiki-example
 * @Package: com.framewiki.example.web
 * @ClassName: ExampleApplication
 * @Description: 启动类
 * @Author: xiaLin
 * @Version: 1.0
 */
@SpringBootApplication(scanBasePackages = {
    "com.framewiki.example",
    "com.cdkjframework.util",
    "com.cdkjframework.core",
    "com.cdkjframework.entity",
    "com.cdkjframework.config",
    "com.cdkjframework.constant",
    "com.cdkjframework.util.tool"
}, exclude = {PageHelperAutoConfiguration.class,
    DataSourceAutoConfiguration.class,
    MultipartAutoConfiguration.class})
@EnableAutoExample
@EnableFeignClients(basePackages = "com.framewiki.example.*.client")
public class ExampleApplication {

  /**
   * 启动主函数
   *
   * @param args 参数
   */
  public static void main(String[] args) {
    CdkjApplication.run(ExampleApplication.class, args);
  }
}
